import { request, METHOD } from "@/utils/request";
import { OPERATELOG,ALARMLOG, LOGINLOG,SYSTEMLOG, EXPORTALARM, EXPORTOPERATE, EXPORTLOGIN } from "./api";

export function operateLog(params) {
  return request(OPERATELOG, METHOD.GET, params);
}
export function alarmLog(params) {
  return request(ALARMLOG, METHOD.GET, params);
}
export function loginLog(params) {
  return request(LOGINLOG, METHOD.GET, params);
}
export function systemLog(params) {
  return request(SYSTEMLOG, METHOD.GET, params);
}
export function exportAlarmLog(params) {
  return request(EXPORTALARM, METHOD.GET, params,{ responseType:'blob', timeout: -1});
}
export function exportOperaterLog(params) {
  return request(EXPORTOPERATE, METHOD.GET, params,{ responseType:'blob', timeout: -1});
}
export function exportLoginLog(params) {
  return request(EXPORTLOGIN, METHOD.GET, params,{ responseType:'blob', timeout: -1});
}
